//
//  CNConstant.swift
//  Ccweibo
//
//  Created by 陈锦聪 on 16/3/22.
//  Copyright © 2016年 Coco. All rights reserved.
//

import UIKit

// 自定义Log
func CNPrint(file: String = __FILE__, line: Int = __LINE__, function: String = __FUNCTION__, item: Any) {
    #if DEBUG
        print("\((file as NSString).lastPathComponent)[\(line)]-\(function):\(item)")
    #endif
}

/// AppKey
let client_id = "2348801443"
/// AppSecret
let client_secret = "3168a0bf424e19d4e7cbaccab2af2b48"
/// 请求的类型
let grant_type = "authorization_code"
/// 回调地址
let redirect_uri = "http://www.baidu.com"
/// 基础URL
let baseURL = NSURL(string: "https://api.weibo.com/")
/// 新特性页数
let newFeaturePageCount = 4
/// 沙盒版本号
let sandboxVersionKey = "sandboxVersionKey"
/// 默认动画时间
let defaultDuration: NSTimeInterval = 0.25
/// 字体(大)
let textFontLarge: CGFloat = 14.0
/// 字体(小)
let textFontSmall: CGFloat = 11.0
/// 控件默认间距
let defaultMargin: CGFloat = 8.0
/// 图片默认间距
let defaultGap: CGFloat = 9.0
/// 最大列数
let maxCols = 3
/// 图片的宽高
let cellWH = (UIScreen.width - defaultMargin * 2 - defaultGap * CGFloat(maxCols - 1)) / CGFloat(maxCols)
/// 微博最大字数
let statusMaxCount = 25

